package com.heima.search.service;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.search.dtos.UserSearchDto;

import java.io.IOException;
import java.util.Map;

public interface ArticleSearchService {

    //es文章分页搜索
    ResponseResult search(UserSearchDto dto) throws IOException;

    //添加索引文章
    void saveArticle(String articleId, Map article) throws IOException;
    //删除索引文章
    void deleteArticle(String articleId) throws IOException;
}
